import React from 'react';
import { Button } from '@arco-design/web-react';

export function getColumns(callback: (record: Record<string, any>) => void) {
  return [
    {
      title: '银行名称',
      dataIndex: 'bankName',
    },
    {
      title: '支行名称',
      dataIndex: 'subBankName',
    },
    {
      title: '省',
      dataIndex: 'province',
    },
    {
      title: '市',
      dataIndex: 'city',
    },
    {
      title: '区',
      dataIndex: 'area',
    },
    {
      title: '操作',
      dataIndex: 'operations',
      render: (_, record) => (
        <Button type="primary" onClick={() => callback(record)}>
          选择
        </Button>
      ),
    },
  ];
}
